<?
        require_once('../inc/BillingAddresses.php');
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Billing Address Created</title>
        <link type="text/css" rel="stylesheet" href="../inc/bootstrap.css" />
    </head>
   
    <body>
       
        <? include('../inc/header.php'); ?>
        <div class="container">
                <h2>Billing Address Created</h2>
    	</div>
        <div class="container">
                        <? include('../inc/nav.php'); ?>
                         <a href="bindex.php">Return to index</a>
        </div>
       
        	<?php
				$con = GetConnection();
				$db = mysql_select_db("eCommerce",$con);
				$query = "INSERT INTO BillingAddress(Users_id, street_address, city, state, zip_code, created_at)
				  VALUES('$_POST[userid]', '$_POST[streetaddress]', '$_POST[city]', '$_POST[state]', '$_POST[zipcode]', NOW())";
				mysql_query($query);
				mysql_close($con);
			?>        	
    </body>
</html>